//
//  LZViewController.m
//  LZTools
//
//  Created by truend86@qq.com on 06/17/2018.
//  Copyright (c) 2018 truend86@qq.com. All rights reserved.
//

#import "LZViewController.h"
#import "LZHomeViewController.h"

@interface LZViewController ()

@end

@implementation LZViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    
    self.view.backgroundColor = [UIColor orangeColor];
    
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Next"
                                                                              style:UIBarButtonItemStylePlain
                                                                             target:self
                                                                             action:@selector(pushNextVC)];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)pushNextVC
{
    LZHomeViewController *vc = [[LZHomeViewController alloc] init];
    [self.navigationController pushViewController:vc animated:YES];
}

@end
